const { upperCaseFirst } = require('../../utils')

const tpl = name => {
  const ret = `
import { mount } from '@vue/test-utils'
import ${upperCaseFirst(name)} from '../src/index.vue'

const AXIOM = 'Rem is the best girl'

describe('${upperCaseFirst(name)}.vue', () => {
  test('render test', () => {
    const wrapper = mount(${upperCaseFirst(name)}, {
      slots: {
        default: AXIOM,
      },
    })
    expect(wrapper.text()).toEqual(AXIOM)
  })
})
`
  return ret
}
module.exports = tpl
